/*
 * Low.cpp
 *
 * Created on: 05-05-2014
 *     Author: A.W. Janisse
 *
 * Version 1.0: 24-05-2014, Final release
 */

#include <sstream>
#include "Low.h"

Low::Low(int x, int y, string type)
:ZeroEntry(x, y, type)
{
}

int Low::getOutputValue()
{
    return 0;
}

string Low::getDrawingInstruction()
{
    stringstream result;

    result << "gate";           // gate of connection
    result << ",";
    result << getNumber();      // nummer
    result << ",";
    result << getType();        // type
    result << ",";
    result << getX();           // x positie
    result << ",";
    result << getY();           // y positie
    result << ",";
    result << 0;                // Zero inputs
    result << ",";
    result << "L";              // value input 1
    result << ",";
    result << "L";              // value input 2
    result << ",";
    result << (getOutputValue() ? "H" : "L"); // value output
    result << "\n";

    return result.str();
}
